package fctuc.dei.myTwitter.dao;

import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;

import fctuc.dei.myTwitter.pojo.User;

/**
 * @author brimbela
 *
 */

public interface IUserDAO {
	
	User authenticateUser(User usr);
	int registerUser(User newUser);
	void updateUser(User newUser);
	List<User> getFollowers(User user);
	List<User> getFollowing(User user);
	ArrayList<User> searchUser(String searchParams);
	void unFollow(User userAsking, User userToBeUnfollowed);
	User getById(ResultSet r);
	int getByUsername(String username);
	boolean follow(int segue, int seguidor);
}
